﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace TechnicBlog.Models
{
    [Table("Students")]
    public class StudentEntity
    {
        [Key]
        public int S_Id { get; set; }
        public string S_Name { get; set; }
        
        public int S_ClassesId { get; set; }
        public int S_Sex { get; set; }
        public DateTime S_Birthday { get; set; }
        public string S_Mobile { get; set; }
        public string S_Address { get; set; }
        [ForeignKey("S_ClassesId")]
        public ClassesEntity Classes { get; set; }
    }
}